Release 10.1A: OpenEdge Development:
ADM and SmartObjects
Reviewing conversion results
This section describes the specific changes that occur when converting ADM1 SmartObjects to ADM2 SmartObjects. The changes it describes include ADM1-to-ADM2 SmartObject conversions, specific ADM file-conversion changes, and additional conversion changes.
Table B–5 lists the ADM1-to-ADM2 9 SmartObject file conversions the conversion utility tries to perform.
Table B–6 identifies specific ADM1-to-ADM2 file conversion changes.
Table B–6: Specific file conversion changes For this element... All... Are... Converted to:Or, if it is a local copy of itself: Converted to: Converted to: Replaced by:
A variable that contains a list is not converted. You must write your own
getandsetproperty functions for any customized attributes.Some common ADM1 attribute names automatically are converted to the corresponding ADM2 property names (for example,
Current-PagetoCurrentPage), based on entries in the fileprotools/v89names.dat. You can extend this list as described in the "Customizing the conversion utility" section.This list identifies operations that the conversion utility performs for all converted files:
- Removes the following prefixes from procedures and procedure dispatches:
- Replaces all strings found in the
++OldNamecolumn ofprotools/v89names.datfile with the corresponding string in the++NewNamecolumn.- Removes all procedures and attribute references found in the
protools/v89names.datfile++RemoveList.- Replaces local-exit procedures with
exitObjectprocedures.- Edits the
ADM-SUPPORTED-LINKSpreprocessor to reflect the Version 9 link types.- When
TABLES-IN-QUERY-...andENABLED-TABLE-IN-QUERY...have more than one table, generatesSECOND-TABLE-IN-QUERY-...,SECOND-ENABLED-TABLE-IN-QUERY-...preprocessors up to theTENTH-TABLE....- When converting a SmartViewer or SmartBrowser, generates an include file with a reasonably appropriate set of field definitions for the ADM2 SmartDataObject RowObject temp-table and flagged with an
&MESSAGEstatement to indicate that it should be replaced with an include file from an appropriate SmartDataObject.- Removes external table definitions.
- If a procedure is dispatched inside of an instance of itself (for example, dispatching abc inside local-abc), converts this to
RUNSUPERsyntax.- Converts
Init-Object procedures toconstructObjectprocedures. This includes the conversions of variable attributes to their ADM2 names. For example,LayoutbecomesObjectLayout,Edge-PixelsbecomesEdgePixels,SmartPanelTypebecomesPanelType,Right-to-LeftbecomesRightToLeft, and so on.- Converts the procedure settings to the ADM2 format. These new formats are required by the AppBuilder to re-establish the correct state when reading the
.wfile.- Creates appropriate field definitions in the
Runtime Attribute Settingswhen converting a Version 8 SmartQuery to an ADM2 SmartDataObject.- Converts states based on the values of the
cStateValsandcStatePropsvariables in the_convt89.pprocedure.- Removes the entire
Method Librarysection and replaces it with the appropriate Version 9 include files based on the type of object to which it is being converted. The utility determines this by reading the ADM1 template type found in theDefinitionssection, as shown below:
If the utility does not find this line, the SmartObject cannot be properly converted. Be sure to restore the line in the
Definitionssection before attempting the conversion.If a SmartObject has ADM1 custom method libraries you need to retain, you need to re-insert them after the conversion. Generally, you have to convert these custom method libraries, as they might not work with ADM2.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |